home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
utility
/
557
/
redform
/
redform.doc
< prev
Wrap
Text File
|
1991-05-25
|
8KB
|
303 lines
RED FORMAT
1.65
Oh No, not another formatting program. Why do anyone bother to
write all those formattingprograms? Well, I started writing Red
Format as a test. I wanted to se how hard it was to format a disk.
Since the ST is so easy to program it was quite easy to get the
program running. After that I have added some, more or less useful,
features to the program. I shall here try to explain what they are
supposed to do to your disks.
When you start the program you will first se a small box presenting
the program. Just hit Return and it will disappear. After that you
will se the main menu. From this form you can select how you want
your disks formatted.
To the right you se the different features Red Format supports.
Let's look at them.
FORMAT
You can specify the number of tracks you want on the disk. You can
select values between 40 and 44 and between 80 and 84. The lower
set of values should be used with 5.25 inch disks.
Another way to expand the space on the disk is to format with 10
sectors per track instead of 9. This can be done with Red Format.
Other values that can be set to control the formatting of the disk
are Number of sides, Interleave and Sectors per FAT. You can also
specify the bootsectortype, ST or IBM. If you select IBM, other
values will change to default settings for a PC.
Before you select Format you should specify which disk you want to
format. You can select between A:, B: and Both. If you select Both,
Both A: and B: will be formatted while you can take a break. This
function requires two drives.
FAST FORMAT
This function does not format the disk. It just erases the first
tracks of the disk. This is the fastest way to clear a disk.
Everything on the disk will be lost for ever.
DISKINFO
With this function you can display what is hidden in the
bootsector. It's easier to use this display than to look at the
data using a sectoreditor.
On the last row of the form you will get a message telling you how
the checkum of the bootsector is calculated. You can also modify
the data with some functions.
ZERO BRANCH
This function clears the first word in the bootsector. This is a
simple way to kill a virus. It's not the most elegant way to do it,
but it sure works. (If you feel like hunting viruses, use AVK)
CLUSTERS
This function tells you how much of the disk is used.
VERIFY
This function try to figure out how the disk is formatted. This can
be useful if some program manages to wipe out your bootsector. Use
it with care. If a disk is formatted several times with different
settings this function may be fooled.
After the disk have been checked a form will be displayed where you
can select between the values in the bootsector and the values
calculated by the program. If you like, you can even enter your own
values.
The program also let you change the bootsectortype and the
checksum.
CREATE BOOT
This function makes it easy to put a program in the bootsector. You
can also move a program from a bootsector to a file just as easy.
With the functions LOAD and SAVE you can load or save a file
(program). Before you do this you must know what type of file you
want to manipulate, just the code or the whole bootsector. This can
be selected through the FILETYPE-switch. If you select CODE then
the program assumes that the program starts at the beginning of the
file.
READ and WRITE lets you get or put a program from or to the
bootsector. When you use WRITE you must specify the offset. This
offset will be written in the beginning of the bootsector, so that
the OP will know where the startpoint of the program is. The
program will be written at the correct location of the bootsector
for the selected offset.
The bootsector must start with $60. This is the branch-instruction.
The offset will be written right after this byte. When the
bootsector is started, this branch is executed. This means that the
program must be located with the offset from where the PC points
when the branch is executed, i.e. right after it. The program must
be located two bytes higher than the offset indicates.
If this sound complicated, don't worry, the program takes care of
all this for you.
For a bootsector to be executed the checksum must be calculated in
a special way. The program lets you choose how the checksum should
be calculated i.e. if the program should start or not. You maybe
wonders why I included this function? I often wonder that myself.
Another rather strange function let you specify the start-
instruction. I don't think that anything besides $60 will work, but
I'm no wizard.
To avoid confusion I should tell you that the program after a READ
copies everything after the point indicated by the offset to a
Codebuffer. This means that if the programs entrypoint is in the
middle of the code, everything before this is lost. For my program
to work correctly the programs entrypoint must be at the beginning
of the code.
This must be true even for programs moved from a bootsector to
another with READ and WRITE. The reason for this is that the
program always build the bootsector from the Codebuffer, so that
you should be able to change the programs offset.
I someone would like the ability to specify the entrypoint in the
code, please contact me and I will add the ability.
If you are trying to analyse a program with an entrypoint in the
middle of the code, please save the whole bootsector. This will not
let you put it back with my program but you will not lose anything
that must be in the file for you to be able to disassemble it.
VOLUME NAME
This function lets you add or alter a Volume Name on a disk. This
funktion only works on ST-disk. The IBM uses a different way to
mark the volume name.
SYSTEM INFO
With this utility you can easily inspect some of the
systemvariables. You will be able to se the various versionnumbers
in your computer and the languagecode. Here you will also find some
useful functions.
FLOPPIES
Here you can specify how many floppies you have attached. This
function lets you use a diskdrive that wasn't on when you booted
your system.
DRIVES
Here you can set what logical drives the system knows of.
BOOTDEVICE
Here you can specify what logical unit the system should boot from.
TRAPS
With this utility you can inspect the TRAP-vectors.
This was a guide through the functions in RED FORMAT. I hope you
will find the program useful.
If you have any comments on it please let me know.
Anders Svensson
Hässleholmsvägen 16
283 00 OSBY
SWEDEN